@/*
    select标签中各个参数的说明:
    name : select的名称
    id : select的id
    changeFun : 数值改变的方法名
    underline : 是否带分割线
    pCode : 上级code
@*/
<div class="input-group">
    <div class="input-group-btn">
        <button data-toggle="dropdown" class="btn btn-white dropdown-toggle" type="button">
            ${name}
        </button>
    </div>
    <select class="form-control" id="${id}" name="${id}"
        	@if(isNotEmpty(changeFun)){
                    onchange="${changeFun}"
             @}   
             
             @if(isNotEmpty(tableName)){
                    tableName="${tableName}"
             @}
             
             @if(isNotEmpty(fieldName)){
                    fieldName="${fieldName}"
             @}
             
             @if(isNotEmpty(selectedCode)){
                    selectedCode="${selectedCode}"
             @}          
        >
        ${tagBody!}
        </select>
</div>
<script src="${ctxPath}/static/modular/common.js"></script>
<script type="text/javascript">
$(function () {
	var select = $("#${id}");
    var data = 
      	 Common.queryTVDictList(
     			select.attr("tableName"),
     			select.attr("fieldName"),
     			select.attr("id"),
     			select.attr("selectedCode")
      	);
});
</script>